<div class="relevance-form">
  <form nz-form [formGroup]="baselineForm" role="form">

    <nz-form-item>
      <nz-form-label nzFor="" nzSpan="6" nzRequired>基线名称</nz-form-label>
      <nz-form-control nzSpan="18">
        <input type="text" nz-input nzSize="default" formControlName="baselineName" autocomplete="off"
          placeholder="机构名称">
        <nz-form-explain
          *ngIf="!(baselineForm.get('baselineName').valid || baselineForm.get('baselineName').untouched)">
          <span class="text-danger" *ngIf="baselineForm.get('baselineName').hasError('required')">基线名称不能为空！</span>
        </nz-form-explain>
      </nz-form-control>
    </nz-form-item>

    <nz-form-item>
      <nz-form-label nzFor="" nzSpan="6" nzRequired>基线序列</nz-form-label>
      <nz-form-control nzSpan="18">
        <input type="text" nz-input nzSize="default" formControlName="baselineNumber" autocomplete="off"
          placeholder="基线序列">
        <nz-form-explain
          *ngIf="!(baselineForm.get('baselineNumber').valid || baselineForm.get('baselineNumber').untouched)">
          <span class="text-danger" *ngIf="baselineForm.get('baselineNumber').hasError('required')">基线序列不能为空！</span>
        </nz-form-explain>
      </nz-form-control>
    </nz-form-item>

    <nz-form-item>
      <nz-form-label nzFor="" nzSpan="6">描述</nz-form-label>
      <nz-form-control nzSpan="18">
        <textarea rows="4" nz-input formControlName="description"></textarea>
      </nz-form-control>
    </nz-form-item>

    <nz-form-item>
      <nz-form-label nzFor="" nzSpan="6" nzRequired>方法</nz-form-label>
      <nz-form-control nzSpan="18">
        <input type="text" nz-input nzSize="default" formControlName="checkProcess" autocomplete="off" placeholder="方法">
        <nz-form-explain
          *ngIf="!(baselineForm.get('checkProcess').valid || baselineForm.get('checkProcess').untouched)">
          <span class="text-danger" *ngIf="baselineForm.get('checkProcess').hasError('required')">方法不能为空！</span>
        </nz-form-explain>
      </nz-form-control>
    </nz-form-item>

    <nz-form-item>
      <nz-form-label nzFor="" nzSpan="6">依据</nz-form-label>
      <nz-form-control nzSpan="18">
        <textarea rows="4" nz-input formControlName="judgementBasis"></textarea>
      </nz-form-control>
    </nz-form-item>

    <nz-form-item>
      <nz-form-label nzFor="" nzSpan="6">备注</nz-form-label>
      <nz-form-control nzSpan="18">
        <textarea rows="4" nz-input formControlName="note"></textarea>
      </nz-form-control>
    </nz-form-item>

    <nz-form-item>
      <nz-form-control class="modal-footer">
        <button nz-button nzType="primary" class="modal-footer-btn"
          (click)="addBaseline()">确&nbsp;&nbsp;&nbsp;&nbsp;定</button>
        <button nz-button nzType="primary" class="modal-footer-btn" nzGhost="true"
          (click)="destroyModal()">取&nbsp;&nbsp;&nbsp;&nbsp;消</button>
      </nz-form-control>
    </nz-form-item>
  </form>
</div>